CC=gcc
CFLAGS= -Wall -g  -I ./include
LFLAGS= -L./lib -l cJSON -ldl

src=$(wildcard *.c)
targets=$(patsubst %.c, %, $(src))

all:$(targets)

$(targets):%:%.c
	$(CC) $< -o $@ $(CFLAGS) $(LFLAGS)

.PHONY:clean all
clean:
	- rm -rf $(targets) *.o  car2.json -f
